var prourl = "http://123.56.226.16:8089/firstaidwebs";
$(document).ready(function() {
	$(":button").each(function (){
		$("#"+this.name).bind("click",function(){
			var name = this.name;
			var tem = $("#"+name+"lab").text();
			model(tem, name);
		});
	});
});
function model(val, val1) {
	htmlobj = $.ajax({
		type : "POST",
		url : prourl + val,
		contentType : "application/json",
		data : $("#" + val1 + "txt").val(),
		dataType : "json",
		success : function(data) {
			$("#" + val1 + "rel").val(JSON.stringify(data));
		}
	});
}